<template>
  <div>
     <van-cell>
      <div class="pic">
        <img :src="ip+item.houseImg" alt="" />
      </div>
      <div class="content">
        <h3>{{item.title}}</h3>
        <div class="desc">{{item.desc}}</div>
        <span class="tag">近地铁</span>
        <div class="price"><span class="num">{{item.price}}</span> 元/月</div>
      </div>
    </van-cell>
  </div>
</template>

<script>
export default {
  props: {
    item: {
      type: Object,
      default: () => ({})
    }
  },
  data () {
    return {
      ip: 'http://liufusong.top:8080'
    }
  }
}
</script>

<style>
.pic {
  float: left;
  width: 106px;
  height: 80px;
}
.pic img {
  width: 106px;
  height: 80px;
}
.content {
  overflow: hidden;
  line-height: 22px;
  padding-left: 12px;
}
.content h3 {
  margin: 0;
  font-size: 15px;
  color: #394043;
}
.content .desc {
  font-size: 12px;
  color: #afb2b3;
}
.content .tag {
  display: inline-block;
  font-size: 12px;
  border-radius: 3px;
  padding: 4px 5px;
  margin-right: 5px;
  line-height: 12px;
  color: #39becd;
  background: #e1f5f8;
}
.price {
  font-size: 12px;
  color: #fa5741;
}
.num {
  font-size: 16px;
  font-weight: bolder;
}
</style>
